|
gmrangle 2.2.1
|
This file contains API for GMR Angle Click driver. More...
#include "drv_digital_out.h"#include "drv_digital_in.h"#include "drv_spi_master.h"#include "spi_specifics.h"Go to the source code of this file.
Data Structures | |
| struct | gmrangle_t |
| Click ctx object definition. More... | |
| struct | gmrangle_cfg_t |
| Click configuration structure definition. More... | |
Functions | |
| void | gmrangle_cfg_setup (gmrangle_cfg_t *cfg) |
| Config Object Initialization function. | |
| err_t | gmrangle_init (gmrangle_t *ctx, gmrangle_cfg_t *cfg) |
| Initialization function. | |
| uint16_t | gmrangle_read_data (gmrangle_t *ctx, uint8_t reg) |
| Generic read 16-bit data function. | |
| void | gmrangle_write_data (gmrangle_t *ctx, uint8_t reg, uint16_t tx_data) |
| Generic write 16-bit data function. | |
| uint16_t | gmrangle_get_status (gmrangle_t *ctx) |
| Get the status data function. | |
| void | gmrangle_set_act_status (gmrangle_t *ctx, uint16_t a_data) |
| Set activation status register function. | |
| int16_t | gmrangle_get_angle_speed_value (gmrangle_t *ctx) |
| Get the angle speed value function. | |
| void | gmrangle_get_angle_speed (gmrangle_t *ctx, float *final_angle_speed, int16_t *angle_speed_val) |
| Get the angle speed function. | |
| float | gmrangle_get_angle_range (gmrangle_t *ctx) |
| Get the angle range function. | |
| int16_t | gmrangle_get_num_revolutions (gmrangle_t *ctx) |
| Get the number of revolutions function. | |
| uint16_t | gmrangle_get_angle_value (gmrangle_t *ctx) |
| Get the angle value function. | |
| float | gmrangle_calculate_angle (gmrangle_t *ctx) |
| Calculate angle function. | |
This file contains API for GMR Angle Click driver.